var myApp = angular.module('myApp',['ui.router']);

myApp.config(function ($stateProvider, $urlRouterProvider) {
    $urlRouterProvider.otherwise(' /index');

    //配置路由
    $stateProvider
        .state('index', {
            url: '/index',
            templateUrl: 'views/index.html'
        })
        .state('introduction', {
            url: '/introduction',
            templateUrl : 'views/introduction.html'
        })
        .state('center', {
            url: '/center',
            templateUrl : 'views/center.html'
        })
        .state('product', {
            url: '/product',
            templateUrl : 'views/product.html'
        })
        .state('relation', {
            url: '/relation',
            templateUrl : 'views/relation.html'
        })
})
